package com.itheima.Dao;

import com.itheima.VO.OrderVO;
import com.itheima.pojo.Member;
import com.itheima.pojo.Order;
import com.itheima.pojo.OrderSetting;
import org.apache.ibatis.annotations.Mapper;

import java.util.Date;

@Mapper
public interface OrderMapper {
    OrderVO findOrderById(int orderId);

    Member selectMemberByIdCard(String idCard);

    void insertMember(Member member);

    void insertOrder(Order order,String time);

    void updateOrderSettingNumberByOrderDate(String orderDate);

    void updateOrderSettingReservationsByOrderDate(String orderDate);

    OrderSetting findByOrderDate(String orderDate);

    Order selectOrderByIdCartAndOrderDate(String idCard, Date orderDate);
}
